<header class="main-header">
  <a href="{{URL('admin')}}" class="logo">
    <span class="logo-mini"><b>{{ $_ENV['SYSTEM_NAME'] }}</b></span>
    <span class="logo-lg"><img src="/img/logo.png" style="width:40px;height:40px;margin-right:5px;"><b>{{ $_ENV['SYSTEM_TITLE'] }}</b></span>
  </a>
  <nav class="navbar navbar-static-top" role="navigation">
    <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
      <span class="sr-only">Toggle navigation</span>
    </a>
    <div class="navbar-custom-menu">
      <ul class="nav navbar-nav">
        <li class="dropdown user user-menu">
          <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" style="height:50px;">
            <img src="{{ isset(session('user')[0]['head_img'])&&session('user')[0]['head_img']!=''?session('user')[0]['head_img']: '/images/logo3.jpg' }}" class="user-image" alt="User Image">
            <span class="hidden-xs"></span>
          </a>
          <ul class="dropdown-menu">
              <li class="user-header">
                  <img src="{{ isset(session('user')[0]['head_img'])&&session('user')[0]['head_img']!=''?session('user')[0]['head_img']: '/images/logo3.jpg' }}" class="img-circle" alt="User Image">
                  <p>
                      {{ isset(session('user')[0]['admin_name']) ? session('user')[0]['admin_name'] : '' }} {{ isset(session('user')[0]['real_name']) ? ('- '.session('user')[0]['real_name']) : '' }}
                  </p>
              </li>
              <li class="user-footer">
                  <div class="pull-left">
                      <a href="{{URL('admin/update/password')}}" class="btn btn-default btn-flat">修改密码</a>
                  </div>
                  <div class="pull-right">
                      <a href="{{URL('admin/logoff')}}" class="btn btn-default btn-flat">注销</a>
                  </div>
              </li>
            </ul>
          </li>
          <!--
          <li>
            <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
          </li>
          -->
      </ul>
    </div>
  </nav>
</header>